﻿using MongoDB.Bson.Serialization.Attributes;
using System;
using System.ComponentModel.DataAnnotations;

namespace AppSocketModel
{
    /// <summary>
    /// 账户注册模型
    /// </summary>
    [BsonIgnoreExtraElements]
    public class AccountRegisterDto
    {
        /// <summary>
        /// 注册码
        /// </summary>
        [Required(ErrorMessage = "注册码")]
        public string RegisterCode { set; get; }
        /// <summary>
        /// 公司名称
        /// </summary>
        [Required(ErrorMessage = "公司名称")]
        public string CompanyName { set; get; }

        /// <summary>
        /// 登录账户号
        /// </summary>
        [Required(ErrorMessage = "登录账户号")]
        public string AccountCode { set; get; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码")]
        public string Password { set; get; }
         
         
    }
}
